/** When your routing table is too long, you can split it into small modules**/
import pageComponentName from '@/config/page-component-name'
import Layout from '@/layout/index.vue'

const baseRouter = [
  {
    path: '/basedata',
    component: Layout,
    name: 'baseData',
    children: [
      {
        path: 'base',
        component: () => import('@/views/busic/base/index.vue'),
        name: 'base',
        meta: {
          title: '资料设置',
          icon: 'Edit',
          keepAlive: true,
          componentName: pageComponentName.setting.setting,
        },
      },
      {
        path: 'platform',
        component: () => import('@/views/busic/platform/index.vue'),
        name: 'platform',
        meta: {
          title: '平台设置',
          keepAlive: true,
          componentName: pageComponentName.setting.platformSet,
        },
        hidden: true,
      },
      {
        path: 'journal',
        component: () => import('@/views/busic/journal/index.vue'),
        name: 'journal',
        meta: {
          title: '操作日志',
          keepAlive: true,
          componentName: pageComponentName.setting.operateLog,
        },
        hidden: true,
      },
      {
        path: '/busic/base/base',
        component: () => import('@/views/busic/base/module/coder_set/base/index.vue'),
        name: 'baseCoder',
        meta: {
          title: '编码设置',
          keepAlive: true,
          componentName: pageComponentName.setting.snCodeSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/base/codescanning',
        component: () => import('@/views/busic/base/module/coder_set/base/CodeScanning/index.vue'),
        name: 'codeScanning',
        meta: {
          title: '编码扫码设置',
          keepAlive: true,
          componentName: pageComponentName.setting.snCodeScannerSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/activate',
        component: () =>
          import('@/views/busic/base/module/coder_set/components/ActiveCard/index.vue'),
        name: 'activate',
        meta: {
          title: '编码激活设置',
          keepAlive: true,
          componentName: pageComponentName.setting.snCodeActivationSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/register',
        component: () =>
          import('@/views/busic/base/module/coder_set/components/RegisCard/index.vue'),
        name: 'registerCoder',
        meta: {
          title: '编码登记设置',
          keepAlive: true,
          componentName: pageComponentName.setting.snCodeRegisterSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/goods',
        component: () => import('@/views/busic/base/module/coder_set/goods/index.vue'),
        name: 'goods',
        meta: {
          title: '编码窜货设置',
          keepAlive: true,
          componentName: pageComponentName.setting.snCodeFleeingGoodsSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/branchset',
        component: () => import('@/views/busic/base/module/network_set/index.vue'),
        name: 'branchSet',
        meta: {
          title: '服务商设置',
          keepAlive: true,
          componentName: pageComponentName.setting.networkSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/customset',
        component: () => import('@/views/busic/base/module/custom_set/index.vue'),
        name: 'customSet',
        meta: {
          title: '客户设置',
          keepAlive: true,
          componentName: pageComponentName.setting.customerSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/proset',
        component: () => import('@/views/busic/base/module/pro_set/index.vue'),
        name: 'proSet',
        meta: {
          title: '商品设置',
          keepAlive: true,
          componentName: pageComponentName.setting.goodSet,
        },
        hidden: true,
      },
      {
        // 添加商品参数
        path: '/busic/base/proattr',
        component: () => import('@/views/busic/base/module/pro_set/index.vue'),
        name: 'proAttr',
        meta: {
          title: '添加参数',
          keepAlive: true,
          componentName: pageComponentName.setting.goodSet,
        },
        hidden: true,
      },
      {
        // 商品参数详细
        path: '/busic/base/prodetail/:id',
        component: () => import('@/views/busic/base/module/pro_set/attr_detail/index.vue'),
        name: 'proDetail',
        meta: {
          title: '参数详细',
          keepAlive: true,
          componentName: pageComponentName.setting.goodAttrDetail,
        },
        hidden: true,
      },
      {
        path: '/busic/base/spareset',
        component: () => import('@/views/busic/base/module/spare_set/index.vue'),
        name: 'spareSet',
        meta: {
          title: '配件设置',
          keepAlive: true,
          componentName: pageComponentName.setting.partSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/supset',
        component: () => import('@/views/busic/base/module/sup_set/index.vue'),
        name: 'supSet',
        meta: {
          title: '供应商设置',
          keepAlive: true,
          componentName: pageComponentName.setting.supplierSet,
        },
        hidden: true,
      },
      {
        // 添加配件参数
        path: '/busic/base/spareattr',
        component: () => import('@/views/busic/base/module/spare_set/add_attr/index.vue'),
        name: 'spareAttr',
        meta: {
          title: '添加参数',
          keepAlive: true,
          componentName: pageComponentName.setting.partAddAttrSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/stoset',
        component: () => import('@/views/busic/base/module/sto_set/index.vue'),
        name: 'stoSet',
        meta: {
          title: '仓储设置',
          keepAlive: true,
          componentName: pageComponentName.setting.storageSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/proman',
        component: () => import('@/views/busic/base/module/pro_man/index.vue'),
        name: 'proMan',
        meta: {
          title: '商品管理',
          keepAlive: true,
          componentName: pageComponentName.setting.goodManagerSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/spareman',
        component: () => import('@/views/busic/base/module/spare_man/index.vue'),
        name: 'spareMan',
        meta: {
          title: '配件管理',
          keepAlive: true,
          componentName: pageComponentName.setting.partManagerSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/supman',
        component: () => import('@/views/busic/base/module/sup_man/index.vue'),
        name: 'supMan',
        meta: {
          title: '供应商管理',
          keepAlive: true,
          componentName: pageComponentName.setting.supplierManagerSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/suprecycle',
        component: () => import('@/views/busic/base/module/sup_man/recycle/index.vue'),
        name: 'supRecycle',
        meta: {
          title: '回收站',
          keepAlive: true,
          componentName: pageComponentName.setting.recycleBinSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/logset',
        component: () => import('@/views/busic/base/module/log_set/index.vue'),
        name: 'logSet',
        meta: {
          title: '物流管理',
          keepAlive: true,
          componentName: pageComponentName.setting.logisticsManagerSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/insset',
        component: () => import('@/views/busic/base/module/ins_set/index.vue'),
        name: 'insSet',
        meta: {
          title: '电子说明书',
          keepAlive: true,
          componentName: pageComponentName.setting.manualSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/videoset',
        component: () => import('@/views/busic/base/module/video_set/index.vue'),
        name: 'videoSet',
        meta: {
          title: '在线视频',
          keepAlive: true,
          componentName: pageComponentName.setting.videoSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/orderset',
        component: () => import('@/views/busic/base/module/order_set/index.vue'),
        name: 'orderSet',
        meta: {
          title: '工单设置',
          keepAlive: true,
          componentName: pageComponentName.setting.orderSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/addTemplate',
        component: () => import('@/views/busic/base/module/order_set/addTemplate/index.vue'),
        name: 'addTemplate',
        meta: {
          title: '创建结单模版',
          keepAlive: true,
          componentName: pageComponentName.setting.endOrderTemplateFormSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/editTemplate/:id',
        component: () => import('@/views/busic/base/module/order_set/addTemplate/index.vue'),
        name: 'editTemplate',
        meta: {
          title: '编辑结单模版',
          keepAlive: true,
          componentName: pageComponentName.setting.endOrderTemplateFormSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/addRateTemp',
        component: () => import('@/views/busic/base/module/order_set/addRateTemp/index.vue'),
        name: 'addRateTemp',
        meta: {
          title: '创建回访模版',
          keepAlive: true,
          componentName: pageComponentName.setting.followUpEemplateFormSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/editRateTemp/:id',
        component: () => import('@/views/busic/base/module/order_set/addRateTemp/index.vue'),
        name: 'editRateTemp',
        meta: {
          title: '编辑回访模版',
          keepAlive: true,
          componentName: pageComponentName.setting.followUpEemplateFormSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/moduleDetail/:id',
        component: () => import('@/views/busic/base/module/order_set/moduleDetail/index.vue'),
        name: 'moduleDetail',
        meta: {
          title: '工单模块详情',
          keepAlive: true,
          componentName: pageComponentName.setting.orderModuleDetailSet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/repairset',
        component: () => import('@/views/busic/base/module/repair_set/index.vue'),
        name: 'repairSet',
        meta: {
          title: '返厂设置',
          keepAlive: true,
          componentName: pageComponentName.setting.returnFactorySet,
        },
        hidden: true,
      },
      {
        path: '/busic/base/inforset',
        component: () => import('@/views/busic/base/module/infor_set/index.vue'),
        name: 'inforSet',
        meta: {
          title: '服务页面',
          keepAlive: true,
          componentName: pageComponentName.setting.servicePageSet,
        },
        hidden: true,
      },
      {
        path: '/sla/slanew',
        component: () => import('@/views/sla/new/index.vue'),
        name: 'slaNew',
        meta: {
          title: '新建SLA',
          keepAlive: true,
          componentName: pageComponentName.setting.slaFormSet,
        },
        hidden: true,
      },
      {
        path: '/sla/slanew/:id',
        component: () => import('@/views/sla/new/index.vue'),
        name: 'slaEd',
        meta: {
          title: '编辑SLA',
          keepAlive: true,
          componentName: pageComponentName.setting.slaFormSet,
        },
        hidden: true,
      },
      {
        path: '/sla/detail/:id',
        component: () => import('@/views/sla/list/detail.vue'),
        name: 'detailSLA',
        meta: {
          title: 'SLA详情',
          keepAlive: true,
          componentName: pageComponentName.setting.slaDetailSet,
        },
        hidden: true,
      },
    ],
  },
]

export default baseRouter
